<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box {
        display: grid;
        width: 500px;
        height: 500px;
        grid-template-rows: 0.25fr 0.25fr 0.25fr auto;
    }
    .top{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .center1{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .center2{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .bottom{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .color{
        font-size: 40px;
        color: white;
    }
</style>

<body>
    <div class="box">
        <div class="top">
            <div class="color" style="background-color: red;">50%</div>
            <div class="color" style="background-color: orange;">50%</div>
        </div>
        <div class="center1">
            <div class="color" style="background-color: green;">33%</div>
            <div class="color" style="background-color: blue;">33%</div>
            <div class="color" style="background-color: pink;">33%</div>
        </div>
        <div class="center2">
            <div class="color" style="background-color: yellow;">25%</div>
            <div class="color" style="background-color: blueviolet;">25%</div>
            <div class="color" style="background-color: brown;">25%</div>
            <div class="color" style="background-color: royalblue;">25%</div>
        </div>
        <div class="bottom">
            <div class="color" style="background-color: black;">50%</div>
            <div class="color" style="background-color: palevioletred;">50%</div>
        </div>

    </div>
</body>

</html>